package com.example.demo;

//import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
// 排除此类的autoconfig  不需要配置数据库
//@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
//@RestController
//@MapperScan("com.example.demo.mapper")
public class DemoApplication {

	public static void main(String[] args) {
		System.out.println("hello world start");

		SpringApplication.run(DemoApplication.class, args);

		System.out.println("hello world end");
	}

//	// http://localhost:8080/hello?name=abc
////    @GetMapping("/hello")
//	@GetMapping(value = "/hello", produces = "application/json;charset=utf8")
//	public String hello(@RequestParam(value = "name", defaultValue = "World") String name) {
//		System.out.println("/hello  name="+name);
//
//		return String.format("Hello  %s!", name);
////        return "{\"name\": \""+name+"\"}";
////        throw new CustomException("卧槽！！出错了");
//	}

}
